package com.feng
{
	import com.feng.components.FButton;

	import flash.display.MovieClip;

	public class FComponent
	{
		public function FComponent()
		{
		}

		public static const BUTTON_SIGN:String = "Btn";

		/** 检查mc中使用的组件 （未完待续） */
		public static function make(mc:MovieClip):void
		{
			var childMc:MovieClip;
			for (var i:int = 0; i < mc.numChildren; i++)
			{
				childMc = mc.getChildAt(i) as MovieClip;
				if (childMc)
				{
					if (childMc.name.substring(childMc.name.length - BUTTON_SIGN.length) == BUTTON_SIGN)
					{
						FButton.make(childMc);
					}
					else
					{
						make(childMc);
					}
				}
			}

		}
	}
}
